
<div class="layui-form-item">
  <label class="layui-form-label">标题<span></span></label>
  <div class="layui-input-inline">
	<input type="text"  placeholder="" name="title" id="info_title" class="layui-input modelform_title" value="{$r?$r['title']:''}" style="" autocomplete="off">
  </div>
</div>	
<div class="layui-form-item">
  <label class="layui-form-label">英文标题<span></span></label>
  <div class="layui-input-inline">
	<input type="text"  placeholder="" name="entitle" id="info_entitle" class="layui-input modelform_entitle" value="{$r?$r['entitle']:''}" style="" autocomplete="off">
  </div>
</div>	
<div class="layui-form-item">
  <label class="layui-form-label">第一段描述</label>
  <div class="layui-input-inline">
	<textarea autocomplete="off" name="description1" id="info_description1" style="" class="layui-input">{$r?$r['description1']:''}</textarea>
  </div>
</div>	
<div class="layui-form-item">
	<label class="layui-form-label">数据管理<span></span></label>
    <div class="layui-input-inline morevalue">
		<script>
			var data_form_js='<tr><td class="morevalue_input"><input class="layui-input" placeholder="" value="" name="data_0[]"></td><td class="morevalue_textarea"><textarea onclick="moreBigTextarea(this,2)" class="layui-input" name="data_1[]"></textarea></td><td class="morevalue_button"><a class="layui-btn layui-btn-primary layui-btn-sm" onclick="morevalue_add(this,data_form_js)"><i class="layui-icon">&#xe654;</i></a><a class="layui-btn layui-btn-primary layui-btn-sm" onclick="morevalue_del(this)"><i class="layui-icon">&#xe640;</i></a></td></tr>';
		</script>
		<table class="layui-table" style="border-right:1px solid #ccc">
			<thead><tr><th style="width:20%">名称<input type="hidden" name="data_morevalue_len[]" placeholder="我只是用于在保存信息的时候用来判断一共有几个morevalue字段的"></th><th style="width:20%">内容<input type="hidden" name="data_morevalue_len[]" placeholder="我只是用于在保存信息的时候用来判断一共有几个morevalue字段的"></th><th style="width:10%">操作</th></tr></thead>
			<tbody>
				<?php
				if($r['data']){
					$morevalue=$r['data'];
					$morevalue_arr=explode("{{RsSplit}}",$morevalue);
					foreach($morevalue_arr as $k=> $v){
						if(!$v){break;}
						$vs=explode("{{FieldSplit}}",$v);
				?>				
				<tr><td class="morevalue_input"><input class="layui-input" placeholder="" value="<?=$r?$vs['0']:''?>" name="data_0[]"></td><td class="morevalue_textarea"><textarea onclick="moreBigTextarea(this,2)" class="layui-input" name="data_1[]"><?=$r?$vs['1']:''?></textarea></td><td class="morevalue_button"><a class="layui-btn layui-btn-primary layui-btn-sm" onclick="morevalue_add(this,data_form_js)"><i class="layui-icon">&#xe654;</i></a><a class="layui-btn layui-btn-primary layui-btn-sm" onclick="morevalue_del(this)"><i class="layui-icon">&#xe640;</i></a></td></tr>
				<?php
					}                     
				}else{
				?>
				<tr><td class="morevalue_input"><input class="layui-input" placeholder="" value="<?=$r?$vs['0']:''?>" name="data_0[]"></td><td class="morevalue_textarea"><textarea onclick="moreBigTextarea(this,2)" class="layui-input" name="data_1[]"><?=$r?$vs['1']:''?></textarea></td><td class="morevalue_button"><a class="layui-btn layui-btn-primary layui-btn-sm" onclick="morevalue_add(this,data_form_js)"><i class="layui-icon">&#xe654;</i></a><a class="layui-btn layui-btn-primary layui-btn-sm" onclick="morevalue_del(this)"><i class="layui-icon">&#xe640;</i></a></td></tr>
				<?php
				}
				?>									
			</tbody>
		</table>
    </div>
</div>
<div class="layui-form-item">
	<label class="layui-form-label">多图1<span></span></label>
    <div class="layui-input-inline morepic">
        <div class="morepic_box">
            <div class="piclist" data-field="images1">
                <ul id="images1_piclist_ul">
                    <?php
                    if($r){
                        $morepic=$r['images1'];
                        $morepic_arr=explode("\r\n",$morepic);
                        foreach($morepic_arr as $v){
                            if(!$v){break;};
                            $vs=explode("||",$v);
                    ?>
                    <li title="拖动我是可以排序的哦" draggable="false">
                        <a class="piclist_img images1_fancybox" rel="images1_rel" title="<?=$vs[2]?>" href="<?=$vs[1]?>">
                            <img src="<?=$vs[0]?>" draggable="false">
                            <input type="hidden" name="images1_smallimg[]" value="<?=$vs[0]?>">
                            <input type="hidden" name="images1_bigimg[]" value="<?=$vs[1]?>">
                        </a>
                        <div class="piclist_title"><input type="text" name="images1_imgname[]" value="<?=$vs[2]?>"></div>
                        <div class="file-panel"><span class="cancel" onclick="delete_li(this)" title="删除图片">删除</span></div>
                    </li>
                    <?php
                        }                     
                    }
                    ?>
                    <li class="add_morepic" id="images1_add_button" title="增加图片" onclick="selectfiles('images1',moreimg,'img','1600','0')">
                        <div class="piclist_img">+</div>
                    </li>                                                
                    <div class="clear"></div>
                </ul>
            </div>                                        
        </div>
    </div>
</div>
<div class="layui-form-item">
	<label class="layui-form-label">图片链接<span></span></label>
    <div class="layui-input-inline morevalue">
		<script>
			var links_form_js='<tr><td class="morevalue_input"><input class="layui-input" placeholder="" value="" name="links_0[]"></td><td class="morevalue_button"><a class="layui-btn layui-btn-primary layui-btn-sm" onclick="morevalue_add(this,links_form_js)"><i class="layui-icon">&#xe654;</i></a><a class="layui-btn layui-btn-primary layui-btn-sm" onclick="morevalue_del(this)"><i class="layui-icon">&#xe640;</i></a></td></tr>';
		</script>
		<table class="layui-table" style="border-right:1px solid #ccc">
			<thead><tr><th style="width:20%">链接<input type="hidden" name="links_morevalue_len[]" placeholder="我只是用于在保存信息的时候用来判断一共有几个morevalue字段的"></th><th style="width:10%">操作</th></tr></thead>
			<tbody>
				<?php
				if($r['links']){
					$morevalue=$r['links'];
					$morevalue_arr=explode("{{RsSplit}}",$morevalue);
					foreach($morevalue_arr as $k=> $v){
						if(!$v){break;}
						$vs=explode("{{FieldSplit}}",$v);
				?>				
				<tr><td class="morevalue_input"><input class="layui-input" placeholder="" value="<?=$r?$vs['0']:''?>" name="links_0[]"></td><td class="morevalue_button"><a class="layui-btn layui-btn-primary layui-btn-sm" onclick="morevalue_add(this,links_form_js)"><i class="layui-icon">&#xe654;</i></a><a class="layui-btn layui-btn-primary layui-btn-sm" onclick="morevalue_del(this)"><i class="layui-icon">&#xe640;</i></a></td></tr>
				<?php
					}                     
				}else{
				?>
				<tr><td class="morevalue_input"><input class="layui-input" placeholder="" value="<?=$r?$vs['0']:''?>" name="links_0[]"></td><td class="morevalue_button"><a class="layui-btn layui-btn-primary layui-btn-sm" onclick="morevalue_add(this,links_form_js)"><i class="layui-icon">&#xe654;</i></a><a class="layui-btn layui-btn-primary layui-btn-sm" onclick="morevalue_del(this)"><i class="layui-icon">&#xe640;</i></a></td></tr>
				<?php
				}
				?>									
			</tbody>
		</table>
    </div>
</div>
<div class="layui-form-item">
  <label class="layui-form-label">第二图标<span></span></label>
  <div class="layui-input-inline file-upload">
		<input type="text" name="icon2" id="info_icon2" value="{$r?$r['icon2']:''}" autocomplete="off" class="layui-input"/>
		<div class="layui-btn-group">
			<button type="button" class="layui-btn" onclick="previewImg('info_icon2')"><i class="layui-icon">&#xe64a;</i>预览</button>
			<button type="button" class="layui-btn fastupimg" data-input_id="info_icon2" data-listtype="img" id="info_icon2_Picker"><i class="layui-icon">&#xe608;</i>上传</button>
			<button type="button" class="layui-btn" onClick="selectfile('info_icon2','','img')"><i class="layui-icon">&#xe67c;</i>浏览</button>
		</div>
  </div>
</div>	